package com.nio.controller;import com.nio.IService.IOrderService;import com.nio.model.CatOrder;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;import java.util.List;@RestController@RequestMapping(value = "/api/order")public class OrderController {    @Autowired    private IOrderService orderService;    @RequestMapping(value = "getItem")    public List<CatOrder> getItem() {        List<CatOrder> orderList = orderService.getItem();        return orderList;    }}